/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package OLDSTUFF.HierarchyPackage.AffixHierarchies;

import OLDSTUFF.HierarchyPackage.*;

/**
 *
 * @author Martin Haulrich
 */
public class HClassTuple {

    final HClass a;

    final HClass b;

    int hash;


    public HClassTuple(HClass a, HClass b) {
        this.a = a;
        this.b = b;
        hash = 7;
        hash = 53 * hash + (this.a != null ? this.a.hashCode() : 0);
        hash = 53 * hash + (this.b != null ? this.b.hashCode() : 0);
    }


    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final HClassTuple other = (HClassTuple) obj;
        if (this.a != other.a && (this.a == null || !this.a.equals(other.a))) {
            return false;
        }
        if (this.b != other.b && (this.b == null || !this.b.equals(other.b))) {
            return false;
        }
        return true;
    }


    @Override
    public int hashCode() {

        return hash;
    }
}
